<template>
    <a-config-provider :locale="locale">
        <div class="no-menu">
            <custom-settled-header />
            <nuxt :keep-alive="true" />
            <custom-my-footer />
        </div>
    </a-config-provider>
</template>
<script>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import moment from 'moment'
import 'moment/locale/zh-cn'

export default {
    data () {
        return {
            locale: zhCN,
            moment,
            zhCN
        }
    },
    created () {
        moment.locale('zh-cn')
    },
    mounted () {
        this.$store.dispatch('user/initStore')
    }
}
</script>

<style lang="less">
html {
    font-size: 16px;
    word-spacing: 1px;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

#__nuxt {
    height: 100%;
    #__layout {
        height: 100%;
        & > div {
            height: 100%;
        }
    }
}
</style>
